package com.znfeiche.server.DAO;

import java.util.ArrayList;
import java.util.List;

import com.znfeiche.server.DO.BaseDO;
import com.znfeiche.server.DO.WebDO;

public class InitParamDAO extends BaseDAO{
	public InitParamDAO(){
		System.out.println("初始化中...");
		init("conf/webtest.xml", "init-param");
		System.out.println("初始化已完成！");
	}
	public List<WebDO> selectByDO(String field,String value){
		List<BaseDO> selectByDO = super.selectByDO(field, value, WebDO.class);
		List<WebDO> list = new ArrayList<WebDO>();
		for(BaseDO base:selectByDO){
			WebDO menu = (WebDO) base;
			list.add(menu);
		}
		return list;
	}
}
